package com.shanzmoo.db.product.mapper;

import com.shanzmoo.db.product.entity.ProductSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shanzmoo.db.product.entity.vo.SkuQueryVO;
import com.shanzmoo.db.product.entity.vo.SkuResultVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商品sku Mapper 接口
 * </p>
 *
 * @author Xueqz
 * @since 2020-12-09
 */
public interface ProductSkuMapper extends BaseMapper<ProductSkuEntity> {

    List<SkuResultVO> getSkuList(@Param("skuQueryVO") SkuQueryVO skuQueryVO);

    Integer getSkuIndex(@Param("spu") String spu);

    List<SkuResultVO> querySku(@Param("skuCodeList") List<String> skuCodeList);
}
